package cn.lycode.system.mapper;

import cn.lycode.system.domain.dto.sysdict.SysDictListDTO;
import cn.lycode.system.domain.entity.SysDict;
import cn.lycode.system.domain.vo.DictCustomVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Title: SysDictMapper
 * @Author lyg
 * @Date 2024/7/22 18:50
 * @description:
 */
public interface SysDictMapper {

    List<SysDict> list(SysDictListDTO dto);

    List<DictCustomVO> listDict(@Param("typeCode") String typeCode);

    int insertSysDict(SysDict sysDict);

    int updateSysDict(SysDict sysDict);

    int deleteByIdList(List<Long> ids);

    int countDictCodeNameByDictTypeId(SysDict sysDict);

    Long selectMaxDictId(Long sysDictTypeId);

    int lockSysDictById(List<Long> ids);
}
